home *** CD-ROM | disk | FTP | other *** search
- property ancestor, MinXLoc, pCursor
- global gDBPicttextVarList
-
- on new me, buttonName, castName, xSprite, xLoc, descendant
- ancestor = new(script("generic Button"), buttonName, castName, xSprite, xLoc, me)
- MinXLoc = getAt(xLoc, 1)
- MyObj = getaProp(gDBPicttextVarList, GetObjProp())
- pCursor = GetPointingCursor(MyObj)
- return me
- end
-
- on performFunction me
- tell the stage
- playSFX(5)
- end tell
- TextCopy()
- return me
- end
-
- on enable me
- enable(ancestor)
- set the cursor of sprite the pChannel of me to pCursor
- end
-
- on disable me
- disable(ancestor)
- set the cursor of sprite the pChannel of me to -1
- end
-
- on buttonLoc me, size
- set the locH of sprite the pChannel of me to getAt([MinXLoc, 517], size)
- disable(me)
- return me
- end
-